﻿@{
    Layout = "~/Views/_ViewImports.cshtml";
}
<script src="~/js/Home/PersonalInfo.js"></script>

<div class="layui-container" style="margin:10px">
    <div class="layui-row" id="lanbt-user-info">
        <div class="layui-col-md5">
            <ul class="layui-form" lay-filter="lanbt-user-form">
                <li class="layui-form-item layui-hide">
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" name="id" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">头像：</label>
                    <div class="layui-input-block">
                        <img class="layui-nav-img" id="headUrl" style="width:120px;height:120px;border:2px solid black" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">用户名：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" lay-verify="required" type="text" name="name" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">登录名：</label>
                    <div class="layui-input-block">
                        <span id="userName" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">密码：</label>
                    <div class="layui-input-inline">
                        <span id="password" autocomplete="off" />
                    </div>
                    <div class="layui-form-mid layui-word-aux"><a class="layui-btn layui-btn-sm" href="javascript:;" lay-submit lay-filter="change-password">更改密码</a></div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">手机号：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" name="mobile" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">邮箱：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" name="email" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <div class="layui-input-block">
                        <a class="layui-btn" lay-submit lay-filter="save" >保存</a>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-row layui-hide" id="lanbt-user-password">
        <div class="layui-col-md5">
            <ul class="layui-form" lay-filter="lanbt-password-form">
                <li class="layui-form-item">
                    <label class="layui-form-label">旧密码：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" lay-verify="required|lanbt_password" type="password" name="oldPassword" id="old_password" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">新密码：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" lay-verify="required|lanbt_password|lanbt_new_old_password" type="password" name="password" id="new_passwrod" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">确认密码：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" lay-verify="required|lanbt_password|lanbt_confirm_password" type="password" name="confirmPassword" autocomplete="off" />
                    </div>
                </li>
                <li class="layui-form-item">
                    <div class="layui-input-block">
                        <a class="layui-btn" lay-submit lay-filter="save-password">确认</a>
                        <a class="layui-btn" id="back">返回</a>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>

